<!--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html lang="en" ng-app="CDash">
  <head ng-controller="HeadController">
    <meta charset="UTF-8">
    <meta name="robots" content="noindex,nofollow" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" ng-href="build/css/{{cssfile}}_@@version.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery-ui-1.10.4.css" />
    <link rel="stylesheet" type="text/css" href="css/jqModal.css" />
    <link rel="stylesheet" type="text/css" href="css/nv.d3.css"/>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <script src="js/CDash_@@version.min.js"></script>
    <title ng-bind="::title">CDash</title>
  </head>

  <body bgcolor="#ffffff" ng-controller="IndexController">
-->
    <div ng-if="cdash.requirelogin == 1" ng-include="'login.php'"></div>

    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.header || 'build/views/partials/header_@@version.html'"></ng-include>

    <div id="main_content" ng-if="!loading && cdash.requirelogin != 1 && !cdash.error">
      <div id="index_top">
        <div name="banner"
             class="h3 text-center bg-info"
             ng-repeat="banner in ::cdash.banners">
          {{::banner}}
        </div>

        <div id="settings" ng-click="showsettings = ! showsettings">
          <span class="glyphicon glyphicon-filter"
                tooltip-popup-delay="1000"
                tooltip-append-to-body="true"
                tooltip-placement="left"
                uib-tooltip="More display options"></span>
          <ul ng-show="showsettings">
            <li>
              <a id="label_advancedview" ng-click="toggleAdvancedView()">
                <span ng-if="::cdash.advancedview == 0">Advanced View</span>
                <span ng-if="::cdash.advancedview != 0">Simple View</span>
              </a>
            </li>
            <li>
              <a class="autorefresh" ng-click="toggleAutoRefresh()">
                <span ng-if="::!autoRefresh">Auto-refresh</span>
                <span ng-if="::autoRefresh">Stop auto-refresh</span>
              </a>
            </li>
            <li>
              <a id="label_colorblind" href="" ng-click="cdash.filterdata.colorblind=!cdash.filterdata.colorblind; colorblind_toggle()">
                <span ng-show="cdash.filterdata.colorblind == 0">Colorblind palette</span>
                <span ng-show="cdash.filterdata.colorblind != 0">Classic palette</span>
              </a>
            </li>
            <li>
              <a id="label_showfilters" ng-click="showfilters_toggle()">
                <span ng-show="showfilters == 0">Show Filters</span>
                <span ng-show="showfilters != 0">Hide Filters</span>
              </a>
            </li>
            <li>
              <a href="http://public.kitware.com/Wiki/CDash:Documentation" class="helptrigger" target="_blank">
                Help
              </a>
            </li>
          </ul>
        </div>

        <div id="helpmenu">
          <div class="jqmWindow" id="help">Loading help...</div>
          <div class="jqmWindow" id="groupsdescription">Loading group description...</div>
        </div>

        <!-- Filters -->
        <ng-include src="'build/views/partials/filterdataTemplate_@@version.html'"></ng-include>
      </div> <!-- End index-top -->

      <!-- Timeline chart -->
      <div class="container"
           ng-if="showTimelineChart"
           style="margin-top: 30px; margin-bottom: 20px;">
        <div timeline></div>
      </div>

      <table ng-if="::cdash.testingdataurl" width="100%" cellpadding="11" cellspacing="0">
        <tr>
          <td height="25" align="left">
            Testing data for this project can be found at:
            <a ng-href="{{::cdash.testingdataurl}}">{{::cdash.testingdataurl}}</a>
          </td>
        </tr>
      </table>

      <!-- Display the site & build name common to all child builds. -->
      <div ng-if="::cdash.childview == 1">
        <br/>
        <div id="site" align="left">
          <b>Site</b>:
          <a ng-href="viewSite.php?siteid={{::cdash.siteid}}&project={{::cdash.projectid}}&currenttime={{::cdash.unixtimestamp}}">
            {{::cdash.site}}
          </a>
          <img ng-if="::cdash.siteoutoforder == 1" src="img/flag.png" title="flag"/>
        </div>

        <div id="buildname" align="left">
          <b>Build Name</b>: {{::cdash.buildname}}
          <img ng-if="::cdash.buildplatform" class="icon" alt="platform" ng-src="img/platform_{{::cdash.buildplatform}}.png"/>
          <a title="View notes"
             ng-if="::cdash.parenthasnotes"
             ng-href="build/{{::cdash.parentid}}/notes">
            <img src="img/document.png" alt="Notes" class="icon"/>
          </a>

          <a ng-if="::cdash.uploadfilecount > 0"
             ng-href="viewFiles.php?buildid={{::cdash.parentid}}"
             title="{{::cdash.uploadfilecount}} files uploaded with this build">
            <img src="img/package.png" alt="Files" class="icon"/>
          </a>

          <a ng-if="::cdash.changelink" target="_blank" ng-href="{{::cdash.changelink}}">
            <img class="smallicon" ng-src="{{::cdash.changeicon}}"/>
          </a>
        </div>

        <div id="numbuilds" align="left">
          <b>Number of SubProjects</b>: {{::cdash.numchildren}}
        </div>

        <div ng-if="::cdash.advancedview != 0">
          <div id="buildstamp" align="left">
            <b>Stamp</b>: {{::cdash.stamp}}
          </div>
          <div id="buildstarttime" align="left">
            <b>Build Start Time</b>: {{::cdash.starttime}}
          </div>
          <div id="osname" align="left">
            <b>OS Name</b>: {{::cdash.osname}}
          </div>
          <div id="osplatform" align="left">
            <b>OS Platform</b>: {{::cdash.osplatform}}
          </div>
          <div id="osrelease" align="left">
            <b>OS Release</b>: {{::cdash.osrelease}}
          </div>
          <div id="osversion" align="left">
            <b>OS Version</b>: {{::cdash.osversion}}
          </div>
          <div id="generator" align="left">
          <b>CTest version: </b>{{::cdash.generator}}
          </div>

          <div ng-if="::cdash.showorder">
            <div ng-if="::cdash.updateduration != false"
                 id="updateduration" align="left">
              <b>Update Time: </b>{{::cdash.updateduration}}
            </div>
            <div ng-if="::cdash.configureduration != false"
                 id="configureduration" align="left">
              <b>Configure Time: </b>{{::cdash.configureduration}}
            </div>
            <div ng-if="::cdash.buildduration != false"
                 id="buildduration" align="left">
              <b>Build Time: </b>{{::cdash.buildduration}}
            </div>
            <div ng-if="::cdash.testduration != false"
                 id="testduration" align="left">
              <b>Test Time: </b>{{::cdash.testduration}}
            </div>
          </div>
        </div>

        <br/>
      </div>

      <!-- Display subproject dependencies -->
      <ng-include ng-if="::cdash.subproject.dependencies.length > 0" ng-init="cdash.tableName = 'SubProject Dependencies'; cdash.subprojects = cdash.subproject.dependencies" src="'build/views/partials/subProjectTable_@@version.html'"></ng-include>

      <!-- BuildGroups -->
      <div ng-repeat="buildgroup in ::cdash.buildgroups | orderBy:'position'" class="buildgroup"
           buildgroup>
      </div>  <!-- end BuildGroups -->

      <!-- Coverage -->
      <div class="buildgroup"
           ng-if="::cdash.coverages.length > 0 || cdash.coveragegroups.length > 0">
        <a id="Coverage"></a>
        <table border="0" cellpadding="4" cellspacing="0" width="100%" class="tabb" id="coveragetable">
          <thead>
            <tr class="table-heading2">
              <td colspan="1" class="nob">
                <h3>
                  <a href="#" class="grouptrigger"
                     ng-click="jumpToAnchor('Coverage')">
                    Coverage
                  </a>
                <a ng-if="::cdash.comparecoverage == 1" href="compareCoverage.php?project={{::cdash.projectname}}&date={{::cdash.date}}">Compare Coverage</a></h3>
              </td>
              <td colspan="6" align="right" class="nob">
              </td>
            </tr>

            <tr class="table-heading">
              <!-- Site & Build Name for non-grouped coverage -->
              <th ng-if="::cdash.childview != 1"
                  ng-click="updateOrderByFields(sortCoverage, 'site', $event, 'coverage')"
                  class="column-header">
                Site
                <span class="glyphicon" ng-class="sortCoverage.orderByFields.indexOf('-site') != -1 ? 'glyphicon-chevron-down' : (sortCoverage.orderByFields.indexOf('site') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-if="::cdash.childview != 1"
                  ng-click="updateOrderByFields(sortCoverage, 'buildname', $event, 'coverage')"
                  class="column-header">
                Build Name
                <span class="glyphicon" ng-class="sortCoverage.orderByFields.indexOf('-buildname') != -1 ? 'glyphicon-chevron-down' : (sortCoverage.orderByFields.indexOf('buildname') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <!-- SubProject name for grouped coverage -->
              <th ng-if="::cdash.childview == 1"
                  ng-click="updateOrderByFields(sortCoverage,'label', $event, 'coverage')"
                  class="column-header">
                SubProject
                <span class="glyphicon" ng-class="sortCoverage.orderByFields.indexOf('-label') != -1 ? 'glyphicon-chevron-down' : (sortCoverage.orderByFields.indexOf('label') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <!-- Fields common to both modes -->
              <th ng-click="updateOrderByFields(sortCoverage, 'percentage', $event, 'coverage')"
                  class="column-header">
                Percentage
                <span class="glyphicon" ng-class="sortCoverage.orderByFields.indexOf('-percentage') != -1 ? 'glyphicon-chevron-down' : (sortCoverage.orderByFields.indexOf('percentage') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-click="updateOrderByFields(sortCoverage, 'loctested', $event, 'coverage')"
                  class="column-header">
                LOC Tested
                <span class="glyphicon" ng-class="sortCoverage.orderByFields.indexOf('-loctested') != -1 ? 'glyphicon-chevron-down' : (sortCoverage.orderByFields.indexOf('loctested') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-click="updateOrderByFields(sortCoverage, 'locuntested', $event, 'coverage')"
                  class="column-header">
                LOC Untested
                <span class="glyphicon" ng-class="sortCoverage.orderByFields.indexOf('-locuntested') != -1 ? 'glyphicon-chevron-down' : (sortCoverage.orderByFields.indexOf('locuntested') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-click="updateOrderByFields(sortCoverage, 'datefull', $event, 'coverage')"
                  ng-class="::{'nob': cdash.displaylabels == 0 && cdash.coveragegroups.length == 0}"
                  class="column-header">
                Date
                <span class="glyphicon" ng-class="sortCoverage.orderByFields.indexOf('-datefull') != -1 ? 'glyphicon-chevron-down' : (sortCoverage.orderByFields.indexOf('datefull') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <!-- Conditionally display the labels -->
              <th ng-if="::cdash.displaylabels == 1 && !cdash.coveragegroups"
                  class="column-header nob">Labels</th>

            </tr>
          </thead>

          <!-- Coverage groups -->
          <tbody ng-repeat="group in ::cdash.coveragegroups |orderBy:'position'" id="coveragebody">
            <tr class="parent_row">
              <td class="paddt" align="left">
                <b>{{::group.label}}</b>
                <div class="glyphicon"
                     ng-if="::group.label !== 'Total'"
                     ng-click="group.hidden = ! group.hidden"
                     ng-class="{'glyphicon-chevron-down': !group.hidden, 'glyphicon-chevron-right': group.hidden}"></div>
              </td>

              <td align="center" ng-class="::{'normal': group.percentage >= group.thresholdgreen, 'warning': group.percentage < group.thresholdgreen && group.percentage >= group.thresholdyellow, 'error': group.percentage < group.thresholdyellow}">
                {{::group.percentage}}%
              </td>

              <td class="center-text">
                {{::group.loctested}}
              </td>
              <td class="center-text">
                {{::group.locuntested}}
              </td>

              <td class="center-text"></td>
            </tr>

            <tr class="child_row" ng-show="!group.hidden" ng-repeat="coverage in group.coverages |orderBy:sortCoverage.orderByFields" ng-class-odd="'odd'" ng-class-even="'even'">
              <td align="left" class="paddt">
                {{::coverage.label}}
              </td>

              <td align="center" ng-class="::{'normal': coverage.percentage >= group.thresholdgreen, 'warning': coverage.percentage < group.thresholdgreen && coverage.percentage >= group.thresholdyellow, 'error': coverage.percentage < group.thresholdyellow}">
                <a ng-href="viewCoverage.php?buildid={{::coverage.buildid}}">
                  {{::coverage.percentage}}%
                </a>
                <sub ng-if="::coverage.percentagediff > 0">+{{::coverage.percentagediff}}%</sub>
                <sub ng-if="::coverage.percentagediff < 0">{{::coverage.percentagediff}}%</sub>
              </td>

              <td class="center-text">
                {{::coverage.loctested}}
                <sub ng-if="::coverage.loctesteddiff > 0">+{{::coverage.loctesteddiff}}</sub>
                <sub ng-if="::coverage.loctesteddiff < 0">{{::coverage.loctesteddiff}}</sub>
              </td>

              <td class="center-text">
                {{::coverage.locuntested}}
                <sub ng-if="::coverage.locuntesteddiff > 0">+{{::coverage.locuntesteddiff}}</sub>
                <sub ng-if="::coverage.locuntesteddiff < 0">{{::coverage.locuntesteddiff}}</sub>
              </td>

              <td align="center" ng-class="::{'nob': cdash.displaylabels == 0}">
                <span class="builddateelapsed" alt="{{::coverage.date}}">
                  {{::coverage.dateelapsed}}
                </span>
              </td>
            </tr>
          </tbody>

          <!-- Ungrouped coverage -->
          <tbody ng-if="::!cdash.coveragegroups || cdash.coveragegroups.length == 0" id="coveragebody">
            <tr class="child_row" ng-repeat="coverage in cdash.coverages |orderBy:sortCoverage.orderByFields" ng-class-odd="'odd'" ng-class-even="'even'">
              <td ng-if="::cdash.childview != 1" align="left" class="paddt">
                {{::coverage.site}}
              </td>

              <td ng-if="::cdash.childview != 1" align="left" class="paddt">
                {{::coverage.buildname}}
              </td>

              <td ng-if="::cdash.childview == 1" align="left" class="paddt">
                {{::coverage.label}}
              </td>

              <td align="center" ng-class="::{'normal': coverage.percentage >= cdash.thresholdgreen, 'warning': coverage.percentage < cdash.thresholdgreen && coverage.percentage >= cdash.thresholdyellow, 'error': coverage.percentage < cdash.thresholdyellow}">
                <a ng-if="::coverage.childlink" ng-href="{{::coverage.childlink}}">
                  {{::coverage.percentage}}%
                </a>
                <a ng-if="::!coverage.childlink" ng-href="viewCoverage.php?buildid={{::coverage.buildid}}">
                  {{::coverage.percentage}}%
                </a>
                <sub ng-if="::coverage.percentagediff > 0">+{{::coverage.percentagediff}}%</sub>
                <sub ng-if="::coverage.percentagediff < 0">{{::coverage.percentagediff}}%</sub>
              </td>

              <td class="center-text">
                {{::coverage.loctested}}
                <sub ng-if="::coverage.loctesteddiff > 0">+{{::coverage.loctesteddiff}}</sub>
                <sub ng-if="::coverage.loctesteddiff < 0">{{::coverage.loctesteddiff}}</sub>
              </td>

              <td class="center-text">
                {{::coverage.locuntested}}
                <sub ng-if="::coverage.locuntesteddiff > 0">+{{::coverage.locuntesteddiff}}</sub>
                <sub ng-if="::coverage.locuntesteddiff < 0">{{::coverage.locuntesteddiff}}</sub>
              </td>

              <td align="center" ng-class="::{'nob': cdash.displaylabels == 0}">
                <span class="builddateelapsed" alt="{{::coverage.date}}">
                  {{::coverage.dateelapsed}}
                </span>
              </td>

              <td ng-if="::cdash.displaylabels == 1" class="nob" align="left">
                {{::coverage.label}}
              </td>
            </tr>
          </tbody>
        </table>
      </div>

      <!-- Dynamic analysis -->
      <div class="buildgroup"
           ng-if="::cdash.dynamicanalyses.length > 0">
        <a id="DynamicAnalysis"></a>
        <table border="0" cellpadding="4" cellspacing="0" width="100%" class="tabb" id="dynamicanalysistable">
          <thead>
            <tr class="table-heading3">
              <td colspan="1" class="nob">
                <h3>
                  <a href="#" class="grouptrigger"
                     ng-click="jumpToAnchor('DynamicAnalysis')">
                    Dynamic Analysis
                  </a>
                </h3>
              </td>
              <td colspan="5" align="right" class="nob">
              </td>
            </tr>

            <tr class="table-heading">
              <th ng-if="::cdash.childview == 1"
                  ng-click="updateOrderByFields(sortDA, 'label', $event, 'DA')"
                  class="column-header">
                SubProject
                <span class="glyphicon" ng-class="sortDA.orderByFields.indexOf('-label') != -1 ? 'glyphicon-chevron-down' : (sortDA.orderByFields.indexOf('label') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-if="::cdash.childview != 1"
                  ng-click="updateOrderByFields(sortDA, 'site', $event, 'DA')"
                  class="column-header">
                Site
                <span class="glyphicon" ng-class="sortDA.orderByFields.indexOf('-site') != -1 ? 'glyphicon-chevron-down' : (sortDA.orderByFields.indexOf('site') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-if="::cdash.childview != 1"
                  ng-click="updateOrderByFields(sortDA, 'buildname', $event, 'DA')"
                  class="column-header">
                Build Name
                <span class="glyphicon" ng-class="sortDA.orderByFields.indexOf('-buildname') != -1 ? 'glyphicon-chevron-down' : (sortDA.orderByFields.indexOf('buildname') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-click="updateOrderByFields(sortDA, 'checker', $event, 'DA')"
                  class="column-header">
                Checker
                <span class="glyphicon" ng-class="sortDA.orderByFields.indexOf('-checker') != -1 ? 'glyphicon-chevron-down' : (sortDA.orderByFields.indexOf('checker') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-click="updateOrderByFields(sortDA, 'defectcount', $event, 'DA')"
                  class="column-header">
                Defect Count
                <span class="glyphicon" ng-class="sortDA.orderByFields.indexOf('-defectcount') != -1 ? 'glyphicon-chevron-down' : (sortDA.orderByFields.indexOf('defectcount') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>

              <th ng-click="updateOrderByFields(sortDA, 'datefull', $event, 'DA')"
                  class="column-header nob">
                Date
                <span class="glyphicon" ng-class="sortDA.orderByFields.indexOf('-datefull') != -1 ? 'glyphicon-chevron-down' : (sortDA.orderByFields.indexOf('datefull') != -1 ? 'glyphicon-chevron-up' : 'glyphicon-none')"></span>
              </th>
            </tr>
          </thead>

          <tbody>
            <tr ng-repeat="da in cdash.dynamicanalyses |orderBy:sortDA.orderByFields"
                ng-class-odd="'odd'" ng-class-even="'even'">
              <td ng-if="::cdash.childview == 1" class="paddt" align="left">
                {{::da.label}}
              </td>

              <td ng-if="::cdash.childview != 1" class="paddt" align="left">
                {{::da.site}}
              </td>

              <td ng-if="::cdash.childview != 1" class="paddt" align="left">
                {{::da.buildname}}
              </td>

              <td class="paddt" class="center-text">{{::da.checker}}</td>

              <td class="paddt" align="center"
                  ng-class="::{'error': da.defectcount > 0, 'normal': da.defectcount < 1}">
                <a ng-if="::da.childlink" ng-href="{{::da.childlink}}">
                  {{::da.defectcount}}
                </a>
                <a ng-if="::!da.childlink" ng-href="viewDynamicAnalysis.php?buildid={{::da.buildid}}">
                  {{::da.defectcount}}
                </a>
              </td>
              <td class="paddt" align="center"
                  ng-class="::{'nob': cdash.displaylabels == 0}">
                <span class="builddateelapsed" alt="{{::da.date}}">{{::da.dateelapsed}}</span>
              </td>
            </tr>
          </tbody>
        </table>

        <table ng-if="::cdash.dynamicanalysis.length > 0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td height="1" colspan="14" align="left" bgcolor="#888888"></td>
          </tr>
        </table>
      </div>
    </div> <!-- end index content -->

    <!-- confirm delete build modal template -->
    <script type="text/ng-template" id="modal-template">
      <div class="modal-header">
        <h4 class="modal-title">Remove Build</h4>
      </div>
      <div class="modal-body">
        <p>Are you sure you want to remove this Build?</p>
      </div>
      <div class="modal-footer">
        <button class="btn" ng-click="$ctrl.cancel()">cancel</button>
        <button class="btn btn-danger" id="modal-delete-build-button" ng-click="$ctrl.ok()">Delete</button>
      </div>
    </script>

    <ng-include ng-if="cdash.requirelogin != 1" src="cdash.footer || 'build/views/partials/footer_@@version.html'"></ng-include>
<!--
  </body>
</html>
-->
